-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Modified fuzz.cpp and Added a dict #994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modified fuzz.cpp and Added a dict #994
Conversation
This new fuzz target fix the afl engine test when we upstream to OSS-Fuzz. The old fuzz target has some issue when afl tested with the word "input". Thank you. Link: google/oss-fuzz#2577 (comment) @baylesj @BillyDonahue |
Friendly ping :) |
#include "json/features.h" | ||
#include "json/reader.h" | ||
#include "json/value.h" | ||
#include "json/writer.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can use #include "json/json.h" instead of "json/features.h", "json/reader.h", "json/value.h", "json/writer.h"
When I run this fuzz test case, there will be |
Closing this PR because it isn't better than the previous fuzz.cpp |
The old fuzz.cpp didn't pass the afl engine test. Also, added a dictionary to increase the coverage of the test.